package com.naiterui.ehp.bs.weixin.subscribe;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 处方支付提醒
 *
 * @author yangfuya
 * @version 1.0
 * @date 2021/6/7 10:37
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
public class PrescriptionPaySubscribe extends BaseSubscribe {

    private static final long serialVersionUID = 5245731648196185704L;
    /**
     * 就诊人
     */
    private String inquirerName;

    /**
     * 开方时间
     */
    private String prescriptionTime;

    /**
     * 备注
     */
    private String remark;

    @Override
    public String getTemplateLabel() {
        return "PRESCRIPTION_PAY";
    }

    @Override
    public void handleContent(List<SubscribeProperties.Content> contentList) {
        Map<String, String> formatMap = new HashMap<>(5);
        formatMap.put("INQUIRER_NAME", getInquirerName());
        formatMap.put("PRESCRIPTION_TIME", getPrescriptionTime());
        formatMap.put("REMARK", getRemark());
        super.formatData(contentList, formatMap);
    }
}
